<?php

namespace api\wechat;

//部门类
class org
{
    //获取全量部门数据
    public function getOrg($data){

        $con=con();
        $data=mysqli_query($con,"select * from org where status=1 and is_delete=1 ");
        $data=mysqli_fetch_all($data,true);
        mysqli_close($con);
        $data=toTree($data);
        return out_right($data);
    }
}